//
//  Networking.m
//  Tour
//
//  Created by Mac on 15/11/20.
//  Copyright © 2015年 lc. All rights reserved.
//

#import "Networking.h"
#import "NetworkSharedManager.h"
#define BaseUrl @"http://e.hulianwangdai.com/mobile.php"
@interface NetWorking(){
    
    NSDictionary * _requestURL;
}
@end
@implementation NetWorking

+ (NetWorking *)sharedManager{
    
    static NetWorking *_networkingManager = nil;
    static dispatch_once_t onceToken; //多线程技术，一般用来写单例
    
    dispatch_once(&onceToken, ^{
        _networkingManager = [[self alloc] init];
    });
    {
        //登录注册找回密码
        _networkingManager.login=@"Lee";
        _networkingManager.reigster=@"Lee";
        _networkingManager.verificationCodeToPhone=@"Lee";
        _networkingManager.verificationCodeToEmail=@"Lee";
        _networkingManager.resetPassword=@"Lee";
        _networkingManager.verificationType=@"Lee";
        
        //关注店铺
        _networkingManager.attentionGoods=@"Lee";
        _networkingManager.attentionShops=@"Lee";
        _networkingManager.cancelAttentionGoods=@"Lee";
        _networkingManager.findSimilarShops=@"Lee";
        
        //店铺详情
        _networkingManager.shopsHeadInfo=@"Lee";
        _networkingManager.shopsHomeInfo=@"Lee";
        _networkingManager.shopsAllGoods=@"Lee";
        _networkingManager.shopsNewGoods=@"Lee";
        _networkingManager.shopsActivity=@"Lee";
        _networkingManager.followShops=@"Lee";
        
        //浏览记录
        _networkingManager.browsingRecord=@"Lee";
        
        //订单模块
        _networkingManager.allOrder=@"Lee";
        _networkingManager.waitPayOrder=@"Lee";
        _networkingManager.waitConsignment=@"Lee";
        _networkingManager.waitEstimate=@"Lee";
        _networkingManager.refund=@"Lee";
        _networkingManager.waitReceiving = @"Lee";
        _networkingManager.logistics=@"Lee";
        _networkingManager.publishEstimate=@"Lee";
        _networkingManager.freight = @"Lee";
        _networkingManager.orderPreview = @"LEe";
        _networkingManager.submitOrder = @"lee";
        _networkingManager.buyNowCreate = @"lee";
        _networkingManager.deleteOrder = @"Lee";
        _networkingManager.orderDetails = @"lee";
        _networkingManager.notify_urlByorder = @"lee";
        _networkingManager.confirmReceiving = @"lee";
        _networkingManager.modifyPayStatus = @"lee";
        
        //积分 余额
        _networkingManager.allIntegral=@"Lee";
        _networkingManager.incomeIntegral=@"Lee";
        _networkingManager.payOutIntegral=@"Lee";
        _networkingManager.remainingBalance = @"Lee";
        _networkingManager.payOutRemainingBalance = @"Lee";
        _networkingManager.incomeRemainingBalance = @"Lee";
        
        //个人信息模块
        _networkingManager.uploadImage = @"Lee";
        _networkingManager.bindEmail = @"Lee";
        _networkingManager.bindPhone = @"Lee";
        _networkingManager.modifyPassword = @"Lee";
        _networkingManager.sendBindEmailCode = @"Lee";
        _networkingManager.sendBindPhoneCode = @"Lee";
        _networkingManager.bindConfirm = @"Lee";
        
        //地址管理
        _networkingManager.address = @"lee";
        _networkingManager.addAddress = @"lee";
        _networkingManager.deleteAddress = @"lee";
        _networkingManager.updateAddress = @"lee";
        _networkingManager.infoAddress = @"lee";
        
        //首页
        _networkingManager.homeIMG = @"Lee";
        _networkingManager.homeGoods = @"Lee";
        _networkingManager.HomeAdPositionId = @"Lee";
        
        //分类
        _networkingManager.classify = @"Lee";
        //分类商品列表
        _networkingManager.goodsList = @"Lee";
        _networkingManager.goodsDetails = @"lee";
        _networkingManager.filter = @"lee";
        
        
        //修改支付状态
        _networkingManager.payStatus = @"lee";
        
        
        //购物车
        _networkingManager.addToShopCart = @"Lee";
        _networkingManager.viewShopCart = @"Lee";
        _networkingManager.updateCart = @"Lee";
        _networkingManager.deleteCart = @"Lee";
        _networkingManager.goodsCount = @"Lee";
        
        //评论
        _networkingManager.commentList = @"Lee";
        //店铺
        _networkingManager.slist = @"Lee";
        _networkingManager.storeInfo = @"Lee";
        _networkingManager.bannarImg = @"Lee";
        _networkingManager.storeList = @"Lee";
        _networkingManager.jpStoreList = @"Lee";
        _networkingManager.single = @"Lee";
        
        //收藏的商品
        _networkingManager.glist = @"Lee";
        //个人信息
        _networkingManager.userInfo = @"Lee";
        //推荐商品
        _networkingManager.brand = @"Lee";
        //修改个人信息
        _networkingManager.updateNickname = @"Lee";
        
        _networkingManager.certification = @"Lee";
        //是否收藏
        _networkingManager.isCollection = @"Lee";
        
        _networkingManager.JoinIndex = @"Lee";
        _networkingManager.Join = @"Lee";
        _networkingManager.quxiao = @"Lee";
        //发送验证码
        _networkingManager.sendVerify = @"Lee";
        //一键登录
        _networkingManager.oneKeyLogin = @"Lee";
        //欢迎页
        _networkingManager.huanying = @"Lee";
        _networkingManager.accountInfo = @"Lee";
    }
    return _networkingManager;
}

//修改支付状态
- (void)setPayStatus:(NSString *)payStatus {
    NSString * str = [NSString stringWithFormat:@"%s",__func__];
    _payStatus = [str substringWithRange:NSMakeRange(16,str.length-18)];
    
}


//登录注册找回密码
-(void)setLogin:(NSString *)login{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _login=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setReigster:(NSString *)reigster{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _reigster=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setVerificationCodeToEmail:(NSString *)verificationCodeToEmail{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _verificationCodeToEmail=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setResetPassword:(NSString *)resetPassword{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _resetPassword=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setVerificationCodeToPhone:(NSString *)verificationCodeToPhone{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _verificationCodeToPhone=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setVerificationType:(NSString *)verificationType{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _verificationType=[str substringWithRange:NSMakeRange(16,str.length-18)];
}


//关注店铺
-(void)setAttentionGoods:(NSString *)attentionGoods{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _attentionGoods=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setAttentionShops:(NSString *)attentionShops{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _attentionShops=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setCancelAttentionGoods:(NSString *)cancelAttentionGoods{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _cancelAttentionGoods=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setFindSimilarShops:(NSString *)findSimilarShops{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _findSimilarShops=[str substringWithRange:NSMakeRange(16,str.length-18)];
}

//店铺详情
-(void)setShopsHeadInfo:(NSString *)shopsHeadInfo{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _shopsHeadInfo=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setShopsHomeInfo:(NSString *)shopsHomeInfo{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _shopsHomeInfo=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setShopsAllGoods:(NSString *)shopsAllGoods{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _shopsAllGoods=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setShopsNewGoods:(NSString *)shopsNewGoods{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _shopsNewGoods=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setShopsActivity:(NSString *)shopsActivity{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _shopsActivity=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setFollowShops:(NSString *)followShops{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _followShops=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setBrowsingRecord:(NSString *)browsingRecord{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _browsingRecord=[str substringWithRange:NSMakeRange(16,str.length-18)];
}

//订单模块
-(void)setAllOrder:(NSString *)allOrder{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _allOrder=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setDeleteOrder:(NSString *)deleteOrder {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _deleteOrder=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setWaitPayOrder:(NSString *)waitPayOrder{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _waitPayOrder=[str substringWithRange:NSMakeRange(16,str.length-18)];
    
}
- (void)setWaitReceiving:(NSString *)waitReceiving {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _waitReceiving=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setWaitConsignment:(NSString *)waitConsignment{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _waitConsignment=[str substringWithRange:NSMakeRange(16,str.length-18)];
    
}
-(void)setWaitEstimate:(NSString *)waitEstimate{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _waitEstimate=[str substringWithRange:NSMakeRange(16,str.length-18)];
    
}
-(void)setRefund:(NSString *)refund{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _refund=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setLogistics:(NSString *)logistics{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _logistics=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setPublishEstimate:(NSString *)publishEstimate{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _publishEstimate=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setFreight:(NSString *)freight {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _freight=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setOrderPreview:(NSString *)orderPreview {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _orderPreview=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setSubmitOrder:(NSString *)submitOrder {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _submitOrder=[str substringWithRange:NSMakeRange(16,str.length-18)];
    
}
- (void)setBuyNowCreate:(NSString *)buyNowCreate{
    NSString *str = [NSString stringWithFormat:@"%s",__func__];
    _buyNowCreate = [str substringWithRange:NSMakeRange(16, str.length - 18)];
}
- (void)setConfirmReceiving:(NSString *)confirmReceiving {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _confirmReceiving=[str substringWithRange:NSMakeRange(16,str.length-18)];
}

- (void)setOrderDetails:(NSString *)orderDetails {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _orderDetails=[str substringWithRange:NSMakeRange(16,str.length-18)];
}

- (void)setNotify_urlByorder:(NSString *)notify_urlByorder {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _notify_urlByorder=[str substringWithRange:NSMakeRange(16,str.length-18)];
}

- (void)setModifyPayStatus:(NSString *)modifyPayStatus {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _modifyPayStatus = [str substringWithRange:NSMakeRange(16,str.length-18)];
    
}

//积分 余额
-(void)setAllIntegral:(NSString *)allIntegral{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _allIntegral=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setIncomeIntegral:(NSString *)incomeIntegral{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _incomeIntegral=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setPayOutIntegral:(NSString *)payOutIntegral{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _payOutIntegral=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setRemainingBalance:(NSString *)remainingBalance{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _remainingBalance=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setPayOutRemainingBalance:(NSString *)payOutRemainingBalance{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _payOutRemainingBalance=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setIncomeRemainingBalance:(NSString *)incomeRemainingBalance{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _incomeRemainingBalance=[str substringWithRange:NSMakeRange(16,str.length-18)];
}

//个人信息模块
-(void)setUploadImage:(NSString *)uploadImage{
    NSString * str = [NSString stringWithFormat:@"%s",__func__];
    _uploadImage = [str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setBindEmail:(NSString *)bindEmail{
    NSString * str = [NSString stringWithFormat:@"%s",__func__];
    _bindEmail = [str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setSendBindEmailCode:(NSString *)sendBindEmailCode{
    NSString * str = [NSString stringWithFormat:@"%s",__func__];
    _sendBindEmailCode = [str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setBindPhone:(NSString *)bindPhone{
    NSString * str = [NSString stringWithFormat:@"%s",__func__];
    _bindPhone = [str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setSendBindPhoneCode:(NSString *)sendBindPhoneCode{
    NSString * str = [NSString stringWithFormat:@"%s",__func__];
    _sendBindPhoneCode = [str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setModifyPassword:(NSString *)modifyPassword{
    NSString * str = [NSString stringWithFormat:@"%s",__func__];
    _modifyPassword = [str substringWithRange:NSMakeRange(16,str.length-18)];
}
-(void)setBindConfirm:(NSString *)bindConfirm{
    NSString * str = [NSString stringWithFormat:@"%s",__func__];
    _bindConfirm = [str substringWithRange:NSMakeRange(16,str.length-18)];
}
//地址管理
- (void)setAddress:(NSString *)address{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _address=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setAddAddress:(NSString *)addAddress{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _addAddress=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setDeleteAddress:(NSString *)deleteAddress{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _deleteAddress=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setUpdateAddress:(NSString *)updateAddress{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _updateAddress=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setInfoAddress:(NSString *)infoAddress{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _infoAddress=[str substringWithRange:NSMakeRange(16,str.length-18)];
}

//分类
- (void)setClassify:(NSString *)classify{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _classify=[str substringWithRange:NSMakeRange(16,str.length-18)];
}

//首页
- (void)setHomeIMG:(NSString *)homeIMG{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _homeIMG=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setHomeGoods:(NSString *)homeGoods {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _homeGoods=[str substringWithRange:NSMakeRange(16,str.length-18)];
    
}
- (void)setHomeAdPositionId:(NSString *)HomeAdPositionId {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _HomeAdPositionId=[str substringWithRange:NSMakeRange(16,str.length-18)];
}

//分类商品列表
- (void)setGoodsList:(NSString *)goodsList {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _goodsList=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setGoodsDetails:(NSString *)goodsDetails {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _goodsDetails=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setFilter:(NSString *)filter{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _filter=[str substringWithRange:NSMakeRange(16,str.length-18)];
}

//购物车
- (void)setAddToShopCart:(NSString *)addToShopCart {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _addToShopCart=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setViewShopCart:(NSString *)viewShopCart {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _viewShopCart=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setUpdateCart:(NSString *)updateCart {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _updateCart=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setDeleteCart:(NSString *)deleteCart {
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _deleteCart=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setGoodsCount:(NSString *)goodsCount{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _goodsCount=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
//评论
- (void)setCommentList:(NSString *)commentList{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _commentList=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
//店铺
- (void)setSlist:(NSString *)slist{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _slist=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setStoreInfo:(NSString *)storeInfo{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _storeInfo=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setBannarImg:(NSString *)bannarImg{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _bannarImg=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setStoreList:(NSString *)storeList{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _storeList=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
//收藏的商品
- (void)setGlist:(NSString *)glist{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _glist=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setJpStoreList:(NSString *)jpStoreList{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _jpStoreList=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
//推荐商品
- (void)setBrand:(NSString *)brand{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _brand=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
- (void)setSingle:(NSString *)single{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _single=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
//个人信息
- (void)setUserInfo:(NSString *)userInfo{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _userInfo=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
//修改个人信息
- (void)setUpdateNickname:(NSString *)updateNickname{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _updateNickname=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
//实名认证
- (void)setCertification:(NSString *)certification{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _certification = [str substringWithRange:NSMakeRange(16,str.length-18)];
}

//是否收藏
- (void)setIsCollection:(NSString *)isCollection{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _isCollection = [str substringWithRange:NSMakeRange(16,str.length-18)];
}

//入驻
- (void)setJoin:(NSString *)Join{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _Join=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
//入驻页面
- (void)setJoinIndex:(NSString *)JoinIndex{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _JoinIndex=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
//取消收藏
- (void)setQuxiao:(NSString *)quxiao{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _quxiao=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
//发送验证码
- (void)setSendVerify:(NSString *)sendVerify{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _sendVerify=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
//一键登录
- (void)setOneKeyLogin:(NSString *)oneKeyLogin{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _oneKeyLogin=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
//欢迎页
- (void)setHuanying:(NSString *)huanying{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _huanying=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
//账户详情
- (void)setAccountInfo:(NSString *)accountInfo{
    NSString * str=[NSString stringWithFormat:@"%s",__func__];
    _accountInfo=[str substringWithRange:NSMakeRange(16,str.length-18)];
}
//添加地址
-(void)initURL{
    
    //字典
    
    if (!_requestURL) {
        _requestURL=@{
                      
                      /*
                       账户详情
                       */
                      
                      @"AccountInfo":[NSString stringWithFormat:@"%@/Account/info",BaseUrl],
                      
                      /*
                       修改支付状态
                       */
                      
                      @"PayStatus":[NSString stringWithFormat:@"%@/Order/updatePayStatus",BaseUrl],
                      
                      @"ModifyPayStatus":[NSString stringWithFormat:@"%@/Order/updatePayStatusFromOrder",BaseUrl],
                      /*
                       首页广告位
                       */
                      @"HomeAdPositionId":[NSString stringWithFormat:@"%@/Index/getAD",BaseUrl],
                      /*
                       首页商品列表
                       */
                      @"HomeGoods":[NSString stringWithFormat:@"%@/Index/best",BaseUrl],
                      /*
                       根据订单取得支付宝异步通知地址
                       */
                      @"Notify_urlByorder":[NSString stringWithFormat:@"%@/Order/payNow",BaseUrl],
                      /*
                       删除购物车
                       */
                      @"DeleteCart":[NSString stringWithFormat:@"%@/Cart/delete",BaseUrl],
                      /*
                       更新购物车
                       */
                      @"UpdateCart":[NSString stringWithFormat:@"%@/Cart/update",BaseUrl],
                      /*
                       提交订单
                       */
                      @"SubmitOrder":[NSString stringWithFormat:@"%@/Order/create",BaseUrl],
                      /*
                       立刻购买
                       */
                      @"BuyNowCreate":[NSString stringWithFormat:@"%@/buyNow/create",BaseUrl],
                      /*
                       订单预览
                       */
                      @"OrderPreview":[NSString stringWithFormat:@"%@/Order/view",BaseUrl],
                      
                      /*
                       确认收货
                       */
                      @"ConfirmReceiving":[NSString stringWithFormat:@"%@/Order/confirm",BaseUrl],
                      /*
                       加入购物车
                       */
                      @"AddToShopCart":[NSString stringWithFormat:@"%@/Cart/add",BaseUrl],
                      /*
                       计算运费
                       */
                      @"Freight":[NSString stringWithFormat:@"%@/Shipping/freight",BaseUrl],
                      /*
                       查看购物车
                       */
                      @"ViewShopCart":[NSString stringWithFormat:@"%@/Cart/info",BaseUrl],
                      
                      /*
                       分类商品列表
                       */
                      @"GoodsList":[NSString stringWithFormat:@"%@/Goods/glist",BaseUrl],
                      /*
                       物品详情
                       */
                      @"GoodsDetails":[NSString stringWithFormat:@"%@/Goods/info",BaseUrl],
                      /*
                       忘记密码模块 选择验证类型
                       */
                      @"VerificationType":[NSString stringWithFormat:@"%@/Member/checkBind",BaseUrl],
                      
                      /*
                       所有积分接口 参数 uid page
                       */
                      @"AllIntegral":[NSString stringWithFormat:@"%@/Account/integralLog?type=",BaseUrl],
                      
                      /*
                       收入的积分接口 参数 uid page
                       */
                      @"IncomeIntegral":[NSString stringWithFormat:@"%@/Account/integralLog?type=1",BaseUrl],
                      
                      /*
                       支出的积分接口 参数 uid page
                       */
                      @"PayOutIntegral":[NSString stringWithFormat:@"%@/Account/integralLog?type=2",BaseUrl],
                      
                      /*
                       余额接口
                       */
                      @"RemainingBalance":[NSString stringWithFormat:@"%@/Account/cashLog?type=",BaseUrl],
                      
                      /*
                       充值余额接口
                       */
                      @"IncomeRemainingBalance":[NSString stringWithFormat:@"%@/Account/cashLog?type=1",BaseUrl],
                      
                      /*
                       消费的余额接口
                       */
                      @"PayOutRemainingBalance":[NSString stringWithFormat:@"%@/Account/cashLog?type=2",BaseUrl],
                      
                      /*
                       发表评价接口 参数 uid goodsid content describe service consignment isAnonymous
                       */
                      @"PublishEstimate":[NSString stringWithFormat:@"%@/Evaluate/add",BaseUrl],
                      
                      /* 物流信息接口 参数 uid trackingNumber
                       */
                      @"Logistics":[NSString stringWithFormat:@"%@/Express/track",BaseUrl],
                      
                      /*
                       所有订单接口 参数 uid
                       */
                      @"AllOrder":[NSString stringWithFormat:@"%@/Order/olist?type=",BaseUrl],
                      
                      /*
                       待付款订单接口 参数 uid
                       */
                      @"WaitPayOrder":[NSString stringWithFormat:@"%@/Order/olist?type=1",BaseUrl],
                      
                      /*
                       待发货订单接口 参数 uid
                       */
                      @"WaitConsignment":[NSString stringWithFormat:@"%@/Order/olist?type=2",BaseUrl],
                      /*
                       待收货
                       */
                      @"WaitReceiving":[NSString stringWithFormat:@"%@/Order/olist?type=3",BaseUrl],
                      /*
                       待评价订单接口 参数 uid
                       */
                      @"WaitEstimate":[NSString stringWithFormat:@"%@/Order/olist?type=4",BaseUrl],
                      /*
                       删除订单
                       */
                      @"DeleteOrder":[NSString stringWithFormat:@"%@/Order/delete",BaseUrl],
                      
                      /*
                       订单详情
                       */
                      @"OrderDetails":[NSString stringWithFormat:@"%@/Order/info",BaseUrl],
                      /*
                       退款/售后订单接口 参数 uid
                       */
                      @"Refund":@"",
                      
                      /*
                       浏览记录接口 参数 uid
                       */
                      @"BrowsingRecord":@"",
                      
                      /*
                       关注商铺接口 参数 uid shopsid
                       */
                      @"FollowShops":[NSString stringWithFormat:@"%@/Collection/add",BaseUrl],
                      
                      /*
                       商铺首页信息接口 参数 shopsid
                       */
                      @"ShopsHomeInfo":@"",
                      
                      /*
                       商铺全部商品接口 参数 shopsid
                       */
                      @"ShopsAllGoods":@"",
                      
                      /*
                       商铺上新接口 参数 shopsid
                       */
                      @"ShopsNewGoods":@"",
                      
                      /*
                       商品活动接口 参数 shopsid
                       */
                      @"ShopsActivity":@"",
                      
                      /*
                       商铺头部信息接口 参数 shopsid
                       */
                      @"ShopsHeadInfo":@"",
                      
                      /*
                       找相似店铺接口 参数 shopsid
                       */
                      @"FindSimilarShops":@"",
                      
                      /*
                       发送验证码给手机接口 参数 phone
                       */
                      @"VerificationCodeToPhone":[NSString stringWithFormat:@"%@/Public/forgetPassword",BaseUrl],
                      
                      /*
                       关注的店铺接口 参数 uid page
                       */
                      @"AttentionShops":@"",
                      
                      /*
                       取消商品关注接口 参数 uid goodsid
                       */
                      @"CancelAttentionGoods":@"",
                      
                      /*
                       关注的商品接口 参数 uid page
                       */
                      @"AttentionGoods":@"",
                      
                      /*
                       重置密码接口 参数 uid password
                       */
                      @"ResetPassword":[NSString stringWithFormat:@"%@/Public/resetPassword",BaseUrl],
                      
                      /*
                       登录接口 参数 username password  mobile
                       */
                      
                      @"Login":[NSString stringWithFormat:@"%@/Public/checkLogin",BaseUrl],
                      
                      /*
                       注册接口 参数 username password email
                       */
                      @"Reigster":[NSString stringWithFormat:@"%@/Public/registerDo",BaseUrl],
                      
                      /*
                       发送验证码给邮箱接口 参数 email
                       */
                      @"VerificationCodeToEmail":[NSString stringWithFormat:@"%@/Public/forgetPassword",BaseUrl],
                      
                      /*
                       上传图片接口
                       */
                      @"UploadImage":[NSString stringWithFormat:@"%@/Member/uploadByForm",BaseUrl],
                      
                      /*
                       获取绑定邮箱验证码
                       */
                      @"SendBindEmailCode":[NSString stringWithFormat:@"%@/Member/bindEmail",BaseUrl],
                      
                      /*
                       获取绑定手机验证码
                       */
                      @"SendBindPhoneCode":[NSString stringWithFormat:@"%@/Member/bindMobile",BaseUrl],
                      
                      /*
                       绑定确认
                       */
                      @"BindConfirm":[NSString stringWithFormat:@"%@/Member/checkBind",BaseUrl],
                      
                      /*
                       修改密码
                       */
                      @"ModifyPassword":[NSString stringWithFormat:@"%@/Member/updatePassword",BaseUrl],
                      
                      @"HomeIMG":[NSString stringWithFormat:@"%@/Index/slide",BaseUrl],
                      /*
                       限时促销接口 参数
                       */
                      @"Buy":@"",
                      /*
                       限时购买详情页接口 参数
                       */
                      @"promotionDetail":@"",
                      
                      /*
                       推荐商品接口 参数
                       */
                      @"Buy":@"",
                      /*
                       推荐商品详情页接口 参数
                       */
                      @"RecommendDetail":@"",
                      
                      /*
                       热卖商品接口 参数
                       */
                      @"Buy":@"",
                      /*
                       热卖商品详情页接口 参数
                       */
                      @"HotcakesDetail":@"",
                      /*
                       地址管理
                       */
                      @"Address":[NSString stringWithFormat:@"%@/Address/alist",BaseUrl],
                      /*
                       添加地址
                       */
                      @"AddAddress":[NSString stringWithFormat:@"%@/Address/add",BaseUrl],
                      /*
                       删除地址
                       */
                      @"DeleteAddress":[NSString stringWithFormat:@"%@/Address/delete",BaseUrl],
                      /*
                       修改地址
                       */
                      @"UpdateAddress":[NSString stringWithFormat:@"%@/Address/update",BaseUrl],
                      /*
                       地址详情
                       */
                      @"InfoAddress":[NSString stringWithFormat:@"%@/Address/info",BaseUrl],
                      /*
                       分类
                       */
                      //http://e.hulianwangdai.com/mobile.php/Goods/gclass
                    @"Classify":[NSString stringWithFormat:@"%@/Goods/gclass",BaseUrl],
                      /*
                       筛选器
                       */
                      @"Filter":[NSString stringWithFormat:@"%@/Goods/filter",BaseUrl],
                      /*
                       评论
                       */
                      @"CommentList":[NSString stringWithFormat:@"%@/Evaluate/geval",BaseUrl],
                      /*
                       店铺列表
                       */
                      @"Slist":[NSString stringWithFormat:@"%@/Collection/slist",BaseUrl],
                      /*
                       店铺信息
                       */
                      @"StoreInfo":[NSString stringWithFormat:@"%@/Store/info",BaseUrl],
                      
                      /*
                       店铺bannar图
                       */
                      @"BannarImg":[NSString stringWithFormat:@"%@/Store/slide",BaseUrl],
                      /*
                       店铺商品列表
                       */
                      @"StoreList":[NSString stringWithFormat:@"%@/Store/glist",BaseUrl],
                      /*
                       收藏商品列表
                       */
                      @"Glist":[NSString stringWithFormat:@"%@/Collection/glist",BaseUrl],
                      /*
                       购物车数量
                       */
                      @"GoodsCount":[NSString stringWithFormat:@"%@/Cart/goodsCount",BaseUrl],
                      /*
                       精品店铺
                       */
                      @"JpStoreList":[NSString stringWithFormat:@"%@/Store/slist",BaseUrl],
                      /*
                       推荐商品
                       */
                      @"Brand":[NSString stringWithFormat:@"%@/Index/brand",BaseUrl],
                      /*
                       
                       */
                      @"Single":[NSString stringWithFormat:@"%@/Index/single",BaseUrl],
                      /*
                       个人信息
                       */
                      @"UserInfo":[NSString stringWithFormat:@"%@/Member/baseInfo",BaseUrl],
                      /*
                       修改个人
                       */
                      @"UpdateNickname":[NSString stringWithFormat:@"%@/Member/updateNickname",BaseUrl],
                      /*
                       实名认证
                       */
                      @"Certification":[NSString stringWithFormat:@"%@/Member/certification",BaseUrl],
                      /*
                       是否收藏
                       */
                      @"IsCollection":[NSString stringWithFormat:@"%@/Collection/isCollection",BaseUrl],
                      /*
                       
                       入驻页面
                       */
                      @"JoinIndex":[NSString stringWithFormat:@"%@/Join/index",BaseUrl],
                      /*
                       入驻
                       */
                      @"Join":[NSString stringWithFormat:@"%@/Join/join",BaseUrl],
                      /*
                       取消收藏
                       */
                      @"Quxiao":[NSString stringWithFormat:@"%@/Collection/delete",BaseUrl],
                      
                      /*
                       发送验证码
                       */
                      @"SendVerify":[NSString stringWithFormat:@"%@/Public/sendVerify",BaseUrl],
                      /*
                       一键登录
                       */
                      @"OneKeyLogin":[NSString stringWithFormat:@"%@/Public/oneKeyLogin",BaseUrl],
                      /*
                       欢迎页
                       */
                      @"Huanying":[NSString stringWithFormat:@"%@/Index/welcome",BaseUrl],
                      };
        
    }
}

-(void)postParameters:(NSDictionary *) parameters type:(NSString *)type progressValue:(void(^)(double)) progress_block success:(void (^)(id)) success_block failure:(void (^)(id)) failure_blcok{
    [self initURL];
    NSString * url=_requestURL[type];
//    LeeLog(@"------%@####，url=%@",type,url);
    [NetworkSharedManager postWithUrl:url andParameters:parameters progressValue:progress_block success:success_block failure:failure_blcok];
}

-(void)getParameters:(NSDictionary *) parameters type:(NSString *)type progressValue:(void(^)(double)) progress_block success:(void (^)(id)) success_block failure:(void (^)(id)) failure_blcok{
    [self initURL];
    
    //:@"%@/Index/getAD" url   @"http://e.hulianwangdai.com/mobile.php"
    NSString * url=_requestURL[type];
    
//    LeeLog(@"------%@，url=%@",type,url);
    
    [NetworkSharedManager getWithUrl:url andParameters:parameters progressValue:progress_block success:success_block failure:failure_blcok];
}

//上传单个图片
-(void)postParameters:(NSDictionary *)parameters type:(NSString *)type ImageData:(NSData *)imageData Name:(NSString *)name progressValue:(void (^)(double)) progress_block success:(void (^)(id))success_block failure:(void (^)(id))failure_blcok{
    NSString * url = _requestURL[type];
//    LeeLog(@"-----%@",type);
    [NetworkSharedManager postWithUrl:url andParameters:parameters andImageData:imageData Name:name progressValue:progress_block success:success_block failure:failure_blcok];
}
@end
